﻿using Commons;
using RMSModel;
using RMSModel.Models;
using RMSModel.VMModels;
using System;
using System.Collections.Generic;
using System.Text;
using MySqlX.XDevAPI.Common;

namespace RMSIService
{
    public interface WXApiIService
    {
        public ResultType<Dictionary<string, object>> login_by_weixin(VMParamEntity param);
        public ResultType<List<goodstype>> GetAllGoodType();

        public ResultType<List<goodstype>> GetGoodTypeById(int id);

        public ResultType<Dictionary<string, object>> GetGoodById(int id,int page,int size);

        public ResultType<int> GetGoodsCount();

        public ResultType<VMGoods> GetGoodsDetailById(int id);

        public ResultType<shopaddress> GetShopAddressById(int id);
        public ResultType<List<shopaddress>> GetAllShopAddress(int id);
        public ResultType<List<shopaddress>> GetAllShopAddress();

        public ResultType<shopaddress> GetDefaultShopAddressByUserId(int id);

        public ResultType AddShopAddress(shopaddress ad);

        public ResultType UpdateShopAddress(shopaddress ad);

        public ResultType<List<sys_region>> GetRegionById(int id);

        #region 订单
        public ResultType<order> GetOrderById(int id);
        public ResultType<Dictionary<string, object>> Checkout(goods ad, int id);
        public ResultType<int> AddOrder(VMOrder o);

        public ResultType<Dictionary<string, object>> GetOrderByUserId(int page, int size, int userId);
        #endregion


    }
}
